package lab02.test05;

public class Cube {   //立方的英文
    int lengths; //长

    int width; //宽

    int height; //高

    public void setValue(int height,int length,int width)  {
        this.height = height;

        this.lengths = length;

        this.width = width;

    }

    public int getVolum() {

        int volum = this.height*this.lengths*this.width;

        return volum;    //求立方体体积
    }
}
